package me.demo.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import me.boot.db.mybatis.interceptor.foreign.ForeignKey;
import me.boot.db.mybatis.template.entity.AutoEntity;

/**
 * <p>
 *
 * </p>
 *
 * @author Sylar
 * @since 2021-10-31
 */
@Getter
@Setter
@TableName("sys_user")
@ApiModel("SysUser对象")
public class SysUser extends AutoEntity {


    @ApiModelProperty("手机")
    @TableField("phone")
    private String phone;

    @ForeignKey(SysDept.class)
    @ApiModelProperty("部门编码")
    @TableField("dept_id")
    private Long deptId;


    public static final String NAME = "name";

    public static final String PHONE = "phone";

    public static final String DEPT_ID = "dept_id";

}
